<template>
  <el-carousel indicator-position="outside">
    <el-carousel-item v-for="item in srcs" :key="item">
      <el-image :src="item.img" style="height: 322px"></el-image>
    </el-carousel-item>
  </el-carousel>
</template>

<script>
    export default {
        name: "Hover",
      data() {
        return {
          srcs: [
            {img:'https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg'},
            {img:'https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg'},
            {img:'https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg'},
            {img:'https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg'},
          ]
        }
      }
    }
</script>

<style scoped>
  .el-carousel__item el-image {
    color: #475669;
    opacity: 0.75;
    margin: 0;
  }

  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
  }

  .el-carousel__item:nth-child(2n+1) {
    background-color: #d3dce6;
  }
</style>
